<!DOCTYPE html>
<html>
<head>
    <title>{$article.post_title|default=''}-{$site_info.site_name|default=''}</title>
    <meta name="keywords" content="{$article.post_keywords|default=''},{$category.name|default=''}"/>
    <meta name="description" content="{$article.post_excerpt|default=''}">
    <include file="public@head"/>
</head>
<body class="single single-post postid-532 single-format-standard">
<include file="public@nav"/>
    <section class="xs-main index-main clr">
        <div class="inner">
            <div class="xs-left">
                <nav class="crumbs">现在位置：
                    <a href="/">主页</a>
                    <portal:breadcrumb cid="$category.id" self="true">
                        ><a href="{:url('portal/List/index',['id'=>$vo['id']])}">{$vo.name}</a>
                    </portal:breadcrumb>
                </nav>
                <article id="post-532" class="post-532 post type-post status-publish format-standard hentry category-web-design">
                    <header class="single-header">
                        <h1>{$article.post_title} </h1>
                        <div class="single-meta">
                            <div class="time">
                                <i></i><a href="javascript:void(0);">{:date('Y-m-d H:i',$article.published_time)}</a>
                            </div>
                            <div class="touxiang">
                                <i class="fa fa-user fa-1"></i><span>作者：{$article.post_source}</span>
                            </div>
                            <div class="bianji">
                            </div>
                            <div class="eye xs-hidden">
                                <i class="fa fa-eye fa-1"></i>
                             <a href="javascript:void(0);">
                                 {$article.post_hits}
                             </a>
                            </div>
                        </div>
                        <!-- .entry-meta -->
                    </header>
                </article>
                  <strong>
                    <span style="color:#ff0000;">注意：</span>本站内容仅供参考，如果您需解决具体问题(尤其法律、医学等领域)，建议您详细咨询相关领域专业人士。<br/>
                  </strong>
                    <!--声明 声明 声明 声明 声明声明-->
                    <div class="single-main" id="a{field:id/}">
                        {$article.post_content}
                    </div>
                    <div class="sxp">
                        <div class="sp">
                            上一条：<a href="{:cmf_url('portal/Article/index',array('id'=>$prev_article['id']))}">{$prev_article.post_title|default='没有了'}</a>
                        </div>
                        <div class="xp">
                            下一条: <a href="{:cmf_url('portal/Article/index',array('id'=>$next_article['id']))}" title=''>{$next_article.post_title|default='没有了'}</a>
                        </div>
                    </div>
                    <div class="single-foot">
                        <section id="related_post-3" class="widget-container widget_related_post hidden-xs">
                            <h3 class="widget-title">网友都看过的文章</h3>
                            <ul class="related_post">
                                <portal:articles limit="4" order="post.published_time DESC" categoryIds="$category.id">
                                    <li><a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}" title="{:cnsubstr($vo.post_title,25)}"><img src="__ROOT__/upload/{$vo['thumbnail']}" alt="{:cnsubstr($vo.post_title,25)}" class="xg-img"/>
                                        <p>
                                            {:cnsubstr($vo.post_title,25)}
                                        </p>
                                    </a>
                                    </li>
                                </portal:articles>
                            </ul>
                        </section>
            </div>
        </div>
            <include file="public@cb"/>
        </div>
    </section>

<include file="public@footer"/>
    <script>//悬浮
    window.onscroll=function(){
        var topScroll =document.body.scrollTop;//滚动的距离,距离顶部的距离
        var bignav = document.getElementById("float");
        if(topScroll <= 1830){
            //当滚动距离小于1820的时候执行下面的内容，也就是让导航栏恢复原状
            bignav.style.position = 'static';
        }else{
            //当滚动距离大于1820px时执行下面的东西
            bignav.style.position = 'fixed';
            bignav.style.top = '8%';
            console.log(topScroll)
        }
    }
    </script>


    <div id="shangxia">
        <div id="shang" title="↑ 返回顶部" style="background: url(__ROOT__/upload/{$theme_vars.indexImg.1.img}) no-repeat;">
        </div>
    </div>
<include file="public@scripts"/>

</body>
</html>